package com.yangjian.main;

import java.lang.reflect.Method;

public class JJRunner {

	public static void launch(Class<?> c) {
		
		
		try {
			
			Object obj = c.newInstance();
			
			
			Method[] ms = c.getMethods();
			for (Method m : ms) {
				m.isAnnotationPresent(JJZhujie.class);
				JJZhujie zhujie = m.getAnnotation(JJZhujie.class);
				
				System.out.println(zhujie.id());;
				System.out.println(zhujie.title());;
				
				m.invoke(obj);
				System.out.println("----------------------");
			}
			
			
		} catch (Exception e) {
			
		}
	}
	
	public static void main(String[] args) {
		
		
		JJRunner.launch(JJMain.class);
		
	}
}
